<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<div align="center">
	Liste des codes promotionnels
	<table border="2">
		<tr>
			<td>Enseigne</td>
			<td>ID Code</td>
			<td>Type Promotion</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
		</tr>
		<c:forEach var="promotion" items="${listePromotion}">
			<tr>
				<td> 
					<c:out value="${promotion.enseigne.libelle}"/> 
				</td>
				<td> 
					<c:out value="${promotion.idCode}"/> 
				</td>
				<td> 
					<c:out value="${promotion.typePromotion.libelle}"/>
				</td>
				<td> 
					<a href="<%= request.getContextPath() %>/promotionForm.do?idPromotion=<c:out value="${promotion.id}"/>"> Modifier promotion </a> 
				</td>
				<td>
					<a href="<%= request.getContextPath() %>/promotionSupprimer.do?idPromotion=<c:out value="${promotion.id}"/>"> Supprimer promotion </a>
				</td>				
			</tr>
		</c:forEach>
	</table>
	<br/>
	<a href="<%= request.getContextPath() %>/promotionForm.do"> Nouvelle Promotion </a>
</div>
